package ru.spbau.database.group3.queryEvaluator;

import ru.spbau.database.group3.engine.DatabaseEngine;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: stas
 * Date: 1/29/13
 * Time: 11:26 PM
 */
public class ErrorInstruction implements Instruction {

    private final String message;


    public ErrorInstruction(String message) {
        this.message = message;
    }

    @Override
    public QueryResult handle(DatabaseEngine engine) throws IOException, ClassNotFoundException {
        return new ErrorResult(message);
    }
}
